package com.sakura.oj.model.dto.submit;

import com.sakura.oj.common.PageRequest;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 提交记录查询
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class SubmitQueryRequest extends PageRequest implements Serializable {

    /**
     * 提交记录id
     */
    private Long id;


    /**
     * 题目id
     */
    @NotBlank(message = "题目id不能为空")
    private Long problemId;


    /**
     * 代码的语言
     */
    private String language;

    /**
     * 判题状态；0-待判题，1 判题中, 2-通过，3-失败
     */
    private Integer status;

}
